package com.example.enterprise.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.enterprise.R
import com.example.enterprise.entity.EnterpriseEntityItem

class EnterpriseAdapter : BaseQuickAdapter<EnterpriseEntityItem, BaseViewHolder>(R.layout.item_enterprise){
    override fun convert(holder: BaseViewHolder, item: EnterpriseEntityItem) {
        holder.setText(R.id.enterprise_name,item.name)
        holder.setText(R.id.enterprise_type,item.industryType)
        holder.setText(R.id.enterprise_message,item.stockName)
        holder.setText(R.id.enterprise_location,item.address)

    }
}